#pragma once

#include <QDialog>
#include "ui_LogDialog.h"
#include "PackDefine.h"

class BTEServer;
class LogDialog : public QDialog
{
	Q_OBJECT

public:
	LogDialog(QWidget *parent = Q_NULLPTR);
	~LogDialog();

	int clientIndex;
	BTEServer *server;

	void setLog(stru_PACK_READ_LOG_RESP log);

protected slots:
	void on_btnUp_clicked();
	void on_btnDown_clicked();
	void on_btnExit_clicked();

private:
	void queryLog(int idx);
	void showEvent(QShowEvent *event) override;

	stru_PACK_READ_LOG_RESP m_log;
	bool m_vaild;

	Ui::LogDialog ui;
};
